```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Arthas - Java线上诊断神器</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .feature-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin: 0 auto 1rem;
        }
        .command-box {
            background-color: #1e293b;
            color: #f8fafc;
            border-radius: 0.5rem;
            position: relative;
        }
        .command-box:before {
            content: "$";
            position: absolute;
            left: 1rem;
            color: #94a3b8;
        }
        .command-box code {
            display: block;
            padding: 1rem 1rem 1rem 2rem;
            font-family: 'Courier New', Courier, monospace;
            white-space: pre;
            overflow-x: auto;
        }
        .tab-active {
            border-bottom: 3px solid #3b82f6;
            color: #3b82f6;
            font-weight: 500;
        }
        .case-study:hover .case-overlay {
            opacity: 1;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4">
        <div class="container mx-auto max-w-5xl">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold leading-tight mb-4">Arthas让线上问题定位变得简单</h1>
                    <p class="text-xl text-blue-100 mb-8">Java应用的"透视镜" - 实时诊断，无需重启</p>
                    <div class="bg-blue-900 bg-opacity-30 p-4 rounded-lg border-l-4 border-blue-400 mb-6">
                        <p class="italic">"还记得那个深夜，生产环境突然报警，CPU飙升到90%，用户投诉系统卡顿，而你却束手无策的绝望时刻吗？Arthas的出现，彻底改变了Java线上问题定位的游戏规则。"</p>
                    </div>
                    <div class="flex space-x-4">
                        <a href="#quick-start" class="bg-white text-blue-700 hover:bg-blue-50 px-6 py-3 rounded-lg font-medium transition duration-300 flex items-center">
                            <i class="fas fa-rocket mr-2"></i> 快速开始
                        </a>
                        <a href="#features" class="border border-white text-white hover:bg-white hover:bg-opacity-10 px-6 py-3 rounded-lg font-medium transition duration-300 flex items-center">
                            <i class="fas fa-star mr-2"></i> 核心功能
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1752988166342-9ef127b1-96e8-4cc6-920e-cdb42a84064d.png" 
                         alt="Arthas诊断工具界面" 
                         class="rounded-lg shadow-2xl border-4 border-white border-opacity-20 max-h-96">
                </div>
            </div>
        </div>
    </section>

    <!-- Introduction Section -->
    <section class="py-16 px-4 bg-white" id="introduction">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <span class="inline-block px-4 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium mb-3">关于ARTHAS</span>
                <h2 class="text-3xl font-bold mb-4">Arthas简介与核心优势</h2>
                <div class="w-20 h-1 bg-blue-500 mx-auto"></div>
            </div>

            <div class="grid md:grid-cols-2 gap-8 mb-16">
                <div>
                    <h3 class="text-2xl font-semibold mb-4 flex items-center">
                        <i class="fas fa-question-circle text-blue-500 mr-2"></i> 什么是Arthas
                    </h3>
                    <p class="text-gray-700 mb-4">Arthas是阿里巴巴开源的一款Java诊断工具，名字来源于希腊神话中的"阿耳忒弥斯"（Artemis），寓意着能够精准地定位和解决问题。它基于Java Agent技术，通过字节码增强的方式，在不重启应用的情况下，实现对Java应用的实时监控和诊断。</p>
                    <p class="text-gray-700">Arthas的核心思想是"动态化"——你可以在运行时动态地查看应用状态、修改代码逻辑，就像给Java应用装了一个"遥控器"，随时可以调整和监控。</p>
                </div>
                <div>
                    <h3 class="text-2xl font-semibold mb-4 flex items-center">
                        <i class="fas fa-check-circle text-green-500 mr-2"></i> 为什么选择Arthas
                    </h3>
                    <p class="text-gray-700 mb-4">在Arthas出现之前，Java线上问题排查主要依赖以下几种方式：</p>
                    <ul class="list-disc pl-5 text-gray-700 space-y-2 mb-4">
                        <li><span class="font-medium">日志分析</span>：需要预先埋点，问题出现时可能没有相关日志</li>
                        <li><span class="font-medium">JVM参数调优</span>：需要重启应用，影响业务连续性</li>
                        <li><span class="font-medium">第三方监控工具</span>：如APM、Prometheus等，但配置复杂，学习成本高</li>
                    </ul>
                    <div class="bg-blue-50 p-4 rounded-lg border border-blue-100">
                        <h4 class="font-medium text-blue-700 mb-2 flex items-center">
                            <i class="fas fa-bolt mr-2"></i> Arthas的优势
                        </h4>
                        <ul class="list-disc pl-5 text-blue-700 space-y-1">
                            <li><span class="font-medium">零侵入</span>：不需要修改应用代码，直接attach到运行中的进程</li>
                            <li><span class="font-medium">实时性</span>：可以实时查看应用状态，无需重启</li>
                            <li><span class="font-medium">易用性</span>：提供丰富的命令行工具，学习成本低</li>
                            <li><span class="font-medium">功能强大</span>：支持方法调用追踪、线程分析、内存监控等多种功能</li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="mb-16">
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-cogs text-purple-500 mr-2"></i> Arthas的核心特性
                </h3>
                
                <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border border-gray-100">
                        <div class="feature-icon bg-blue-100 text-blue-600">
                            <i class="fas fa-code-branch text-2xl"></i>
                        </div>
                        <h4 class="text-xl font-semibold text-center mb-2">线程分析</h4>
                        <p class="text-gray-600 text-center">查看线程状态、堆栈信息、死锁检测</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border border-gray-100">
                        <div class="feature-icon bg-green-100 text-green-600">
                            <i class="fas fa-search text-2xl"></i>
                        </div>
                        <h4 class="text-xl font-semibold text-center mb-2">方法调用追踪</h4>
                        <p class="text-gray-600 text-center">实时监控方法调用链路和耗时</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border border-gray-100">
                        <div class="feature-icon bg-purple-100 text-purple-600">
                            <i class="fas fa-memory text-2xl"></i>
                        </div>
                        <h4 class="text-xl font-semibold text-center mb-2">内存分析</h4>
                        <p class="text-gray-600 text-center">查看堆内存使用情况、对象分布</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300 border border-gray-100">
                        <div class="feature-icon bg-yellow-100 text-yellow-600">
                            <i class="fas fa-magic text-2xl"></i>
                        </div>
                        <h4 class="text-xl font-semibold text-center mb-2">动态代码修改</h4>
                        <p class="text-gray-600 text-center">在不重启的情况下修改方法逻辑</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Quick Start Section -->
    <section class="py-16 px-4 bg-gray-50" id="quick-start">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <span class="inline-block px-4 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium mb-3">快速上手</span>
                <h2 class="text-3xl font-bold mb-4">环境准备与快速上手</h2>
                <div class="w-20 h-1 bg-blue-500 mx-auto"></div>
            </div>

            <div class="grid md:grid-cols-2 gap-8 mb-16">
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <i class="fas fa-download text-blue-500 mr-2"></i> 安装配置Arthas
                    </h3>
                    
                    <div class="space-y-6">
                        <div>
                            <h4 class="font-medium text-lg mb-2">方式一：直接下载</h4>
                            <div class="command-box">
                                <code>wget https://github.com/alibaba/arthas/releases/download/arthas-all-3.7.2/arthas-bin.zip
unzip arthas-bin.zip
cd arthas</code>
                            </div>
                        </div>
                        
                        <div>
                            <h4 class="font-medium text-lg mb-2">方式二：使用Maven</h4>
                            <div class="command-box">
                                <code>&lt;dependency&gt;
    &lt;groupId&gt;com.taobao.arthas&lt;/groupId&gt;
    &lt;artifactId&gt;arthas-spring-boot-starter&lt;/artifactId&gt;
    &lt;version&gt;3.7.2&lt;/version&gt;
&lt;/dependency&gt;</code>
                            </div>
                        </div>
                        
                        <div>
                            <h4 class="font-medium text-lg mb-2">方式三：一键安装脚本</h4>
                            <div class="command-box">
                                <code>curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar</code>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <i class="fas fa-plug text-green-500 mr-2"></i> 连接目标应用
                    </h3>
                    
                    <p class="text-gray-700 mb-4">启动Arthas后，它会自动扫描当前机器上运行的Java进程：</p>
                    
                    <div class="command-box mb-4">
                        <code>$ java -jar arthas-boot.jar
[INFO] arthas-boot version: 3.7.2
[INFO] Found existing java process, please choose one and input the serial number of the process, eg : 1. Enter 'q' to quit.
[1]: 12345 com.ts.Application
[2]: 23456 com.ts.UserService</code>
                    </div>
                    
                    <p class="text-gray-700">选择目标进程后，Arthas会自动attach到该进程，并启动一个交互式命令行界面。</p>
                    
                    <h3 class="text-2xl font-semibold mt-8 mb-4 flex items-center">
                        <i class="fas fa-terminal text-purple-500 mr-2"></i> 基础命令使用
                    </h3>
                    
                    <div class="grid grid-cols-2 gap-4">
                        <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
                            <h4 class="font-medium mb-1">help命令</h4>
                            <p class="text-sm text-gray-600">查看所有可用命令</p>
                            <div class="command-box mt-2">
                                <code>$ help</code>
                            </div>
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
                            <h4 class="font-medium mb-1">version命令</h4>
                            <p class="text-sm text-gray-600">查看Arthas版本</p>
                            <div class="command-box mt-2">
                                <code>$ version</code>
                            </div>
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
                            <h4 class="font-medium mb-1">quit命令</h4>
                            <p class="text-sm text-gray-600">退出Arthas</p>
                            <div class="command-box mt-2">
                                <code>$ quit</code>
                            </div>
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
                            <h4 class="font-medium mb-1">cls命令</h4>
                            <p class="text-sm text-gray-600">清屏</p>
                            <div class="command-box mt-2">
                                <code>$ cls</code>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section class="py-16 px-4 bg-white" id="features">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <span class="inline-block px-4 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium mb-3">核心功能</span>
                <h2 class="text-3xl font-bold mb-4">常用监控命令详解</h2>
                <div class="w-20 h-1 bg-blue-500 mx-auto"></div>
            </div>

            <div class="mb-16">
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-code-branch text-blue-500 mr-2"></i> thread命令
                </h3>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <p class="text-gray-700 mb-4">thread命令是Arthas中最常用的命令之一，用于查看线程状态和堆栈信息。</p>
                        
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">查看所有线程</h4>
                                <div class="command-box">
                                    <code>$ thread</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">查看指定线程的堆栈</h4>
                                <div class="command-box">
                                    <code>$ thread 1</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">查看CPU使用率最高的线程</h4>
                                <div class="command-box">
                                    <code>$ thread -n 3</code>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">查看死锁线程</h4>
                                <div class="command-box">
                                    <code>$ thread -b</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">实时监控线程状态</h4>
                                <div class="command-box">
                                    <code>$ thread -i 1000</code>
                                </div>
                            </div>
                        </div>
                        
                        <div class="mt-8 bg-yellow-50 border-l-4 border-yellow-400 p-4 rounded-r">
                            <div class="flex">
                                <div class="flex-shrink-0">
                                    <i class="fas fa-lightbulb text-yellow-500 mt-1"></i>
                                </div>
                                <div class="ml-3">
                                    <h4 class="text-sm font-medium text-yellow-800">实用技巧</h4>
                                    <div class="mt-1 text-sm text-yellow-700">
                                        <p>结合 <code class="bg-yellow-100 px-1 rounded">grep</code> 命令可以过滤特定线程：</p>
                                        <div class="command-box mt-2">
                                            <code>$ thread | grep "http"</code>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mb-16">
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-server text-green-500 mr-2"></i> jvm命令
                </h3>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <p class="text-gray-700 mb-4">jvm命令用于查看JVM的详细信息。</p>
                        
                        <div>
                            <h4 class="font-medium mb-1">查看JVM基本信息</h4>
                            <div class="command-box">
                                <code>$ jvm</code>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">查看系统属性</h4>
                                <div class="command-box">
                                    <code>$ jvm --sysprops</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">查看环境变量</h4>
                                <div class="command-box">
                                    <code>$ jvm --env</code>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mb-16">
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-memory text-purple-500 mr-2"></i> memory命令
                </h3>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <p class="text-gray-700 mb-4">memory命令用于分析内存使用情况。</p>
                        
                        <div>
                            <h4 class="font-medium mb-1">查看堆内存使用</h4>
                            <div class="command-box">
                                <code>$ memory</code>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <div>
                            <h4 class="font-medium mb-1">查看对象分布</h4>
                            <div class="command-box">
                                <code>$ memory --class com.ts.User</code>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-search text-red-500 mr-2"></i> trace命令
                </h3>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <p class="text-gray-700 mb-4">trace命令用于追踪方法调用，是排查性能问题的利器。</p>
                        
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">追踪方法调用</h4>
                                <div class="command-box">
                                    <code>$ trace com.ts.UserService getUser</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">设置调用次数限制</h4>
                                <div class="command-box">
                                    <code>$ trace -n 100 com.ts.UserService getUser</code>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">包含子方法调用</h4>
                                <div class="command-box">
                                    <code>$ trace -v com.ts.UserService getUser</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">按耗时过滤</h4>
                                <div class="command-box">
                                    <code>$ trace com.ts.UserService getUser '#cost > 200'</code>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Advanced Section -->
    <section class="py-16 px-4 bg-gray-50" id="advanced">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <span class="inline-block px-4 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium mb-3">高级技巧</span>
                <h2 class="text-3xl font-bold mb-4">高级问题排查技巧</h2>
                <div class="w-20 h-1 bg-blue-500 mx-auto"></div>
            </div>

            <div class="mb-16">
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-tachometer-alt text-red-500 mr-2"></i> CPU飙高问题定位
                </h3>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <p class="text-gray-700 mb-4">CPU飙高是线上最常见的问题之一，Arthas提供了多种方式来定位：</p>
                        
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">步骤1：查看CPU使用率最高的线程</h4>
                                <div class="command-box">
                                    <code>$ thread -n 3</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">步骤2：追踪热点方法</h4>
                                <div class="command-box">
                                    <code>$ trace com.ts.HotMethod</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">步骤3：查看方法调用统计</h4>
                                <div class="command-box">
                                    <code>$ profiler start
$ profiler stop</code>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="font-medium text-lg mb-2">实战案例：</h4>
                        
                        <div class="command-box mb-4">
                            <code>// 模拟CPU飙高的代码
public class CpuHighDemo {
    public void cpuIntensiveTask() {
        while (true) {
            // 模拟CPU密集型操作
            Math.sqrt(Math.random() * 1000000);
        }
    }
}</code>
                        </div>
                        
                        <p class="text-gray-700 mb-2">使用Arthas定位：</p>
                        
                        <div class="command-box">
                            <code>$ thread -n 1
$ trace com.ts.CpuHighDemo cpuIntensiveTask</code>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mb-16">
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-fill-drip text-orange-500 mr-2"></i> 内存泄漏排查
                </h3>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <p class="text-gray-700 mb-4">内存泄漏是另一个常见问题，Arthas提供了强大的内存分析功能：</p>
                        
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">步骤1：查看堆内存使用趋势</h4>
                                <div class="command-box">
                                    <code>$ memory</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">步骤2：查看对象分布</h4>
                                <div class="command-box">
                                    <code>$ heapdump /tmp/heap.hprof</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">步骤3：分析大对象</h4>
                                <div class="command-box">
                                    <code>$ ognl '@java.lang.Runtime@getRuntime().totalMemory()'</code>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="font-medium text-lg mb-2">实战案例：</h4>
                        
                        <div class="command-box mb-4">
                            <code>// 模拟内存泄漏的代码
public class MemoryLeakDemo {
    private static List&lt;String&gt; cache = new ArrayList&lt;&gt;();
    
    public void addToCache(String data) {
        cache.add(data); // 内存泄漏：数据只增不减
    }
}</code>
                        </div>
                        
                        <p class="text-gray-700 mb-2">使用Arthas排查：</p>
                        
                        <div class="command-box">
                            <code>$ memory
$ heapdump /tmp/heap.hprof
$ ognl '@com.ts.MemoryLeakDemo@cache.size()'</code>
                        </div>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-exchange-alt text-blue-500 mr-2"></i> 死锁问题诊断
                </h3>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <p class="text-gray-700 mb-4">死锁是并发编程中的经典问题：</p>
                        
                        <div class="space-y-4">
                            <div>
                                <h4 class="font-medium mb-1">查看死锁线程</h4>
                                <div class="command-box">
                                    <code>$ thread -b</code>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="font-medium mb-1">查看线程堆栈</h4>
                                <div class="command-box">
                                    <code>$ thread 1
$ thread 2</code>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <div class="mermaid">
                            graph LR
                            A[线程1持有锁A] -->|等待锁B| B[线程2持有锁B]
                            B -->|等待锁A| A
                        </div>
                        
                        <div class="mt-4 bg-blue-50 p-4 rounded-lg border border-blue-200">
                            <h4 class="font-medium text-blue-800 mb-2 flex items-center">
                                <i class="fas fa-info-circle mr-2"></i> 死锁检测原理
                            </h4>
                            <p class="text-sm text-blue-700">Arthas通过分析线程堆栈中的锁持有和等待关系，自动检测死锁情况。检测到死锁时，会显示相关的线程ID和锁信息，帮助开发者快速定位问题。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Case Studies Section -->
    <section class="py-16 px-4 bg-white" id="cases">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <span class="inline-block px-4 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium mb-3">实战案例</span>
                <h2 class="text-3xl font-bold mb-4">实战案例分析</h2>
                <div class="w-20 h-1 bg-blue-500 mx-auto"></div>
            </div>

            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16">
                <div class="case-study bg-white rounded-xl overflow-hidden shadow-md hover:shadow-lg transition duration-300 relative">
                    <div class="p-6">
                        <div class="text-blue-500 mb-3">
                            <i class="fas fa-shopping-cart text-3xl"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-2">电商系统订单超时问题</h3>
                        <p class="text-gray-600 mb-4">电商系统订单接口偶尔出现超时，影响用户体验。</p>
                        <div class="command-box mb-4">
                            <code>$ trace com.ts.OrderController createOrder</code>
                        </div>
                        <div class="bg-green-50 p-3 rounded-lg">
                            <p class="text-sm text-green-700"><span class="font-medium">解决方案：</span>调整数据库连接池配置，增加连接数。</p>
                        </div>
                    </div>
                </div>
                
                <div class="case-study bg-white rounded-xl overflow-hidden shadow-md hover:shadow-lg transition duration-300 relative">
                    <div class="p-6">
                        <div class="text-purple-500 mb-3">
                            <i class="fas fa-money-bill-wave text-3xl"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-2">支付系统内存泄漏排查</h3>
                        <p class="text-gray-600 mb-4">支付系统运行一段时间后内存使用率持续上升。</p>
                        <div class="command-box mb-4">
                            <code>$ heapdump /tmp/payment_heap.hprof</code>
                        </div>
                        <div class="bg-green-50 p-3 rounded-lg">
                            <p class="text-sm text-green-700"><span class="font-medium">解决方案：</span>修复对象引用问题，添加适当的清理逻辑。</p>
                        </div>
                    </div>
                </div>
                
                <div class="case-study bg-white rounded-xl overflow-hidden shadow-md hover:shadow-lg transition duration-300 relative">
                    <div class="p-6">
                        <div class="text-orange-500 mb-3">
                            <i class="fas fa-project-diagram text-3xl"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-2">微服务调用链路追踪</h3>
                        <p class="text-gray-600 mb-4">微服务调用链路复杂，难以定位性能瓶颈。</p>
                        <div class="command-box mb-4">
                            <code>$ monitor com.ts.*Service * -c 10</code>
                        </div>
                        <div class="bg-green-50 p-3 rounded-lg">
                            <p class="text-sm text-green-700"><span class="font-medium">解决方案：</span>优化慢查询，增加缓存层。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Considerations Section -->
    <section class="py-16 px-4 bg-gray-50" id="considerations">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <span class="inline-block px-4 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium mb-3">注意事项</span>
                <h2 class="text-3xl font-bold mb-4">生产环境使用建议</h2>
                <div class="w-20 h-1 bg-blue-500 mx-auto"></div>
            </div>

            <div class="grid md:grid-cols-3 gap-8 mb-16">
                <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
                    <div class="text-blue-500 mb-4">
                        <i class="fas fa-user-shield text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">权限控制</h3>
                    <p class="text-gray-700">确保只有授权人员可以访问Arthas，避免未经授权的操作。</p>
                    <ul class="mt-3 space-y-2 text-sm text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mr-2 mt-1"></i>
                            <span>使用SSH隧道限制访问</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mr-2 mt-1"></i>
                            <span>配置网络ACL规则</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
                    <div class="text-purple-500 mb-4">
                        <i class="fas fa-tachometer-alt text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">性能影响控制</h3>
                    <p class="text-gray-700">Arthas虽然功能强大，但也会对应用性能产生一定影响。</p>
                    <div class="mt-3">
                        <div class="flex items-center justify-between text-sm mb-1">
                            <span class="font-medium">方法追踪</span>
                            <span class="bg-red-100 text-red-800 px-2 py-1 rounded-full text-xs">高影响</span>
                        </div>
                        <div class="flex items-center justify-between text-sm mb-1">
                            <span class="font-medium">线程分析</span>
                            <span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full text-xs">中影响</span>
                        </div>
                        <div class="flex items-center justify-between text-sm">
                            <span class="font-medium">内存分析</span>
                            <span class="bg-red-100 text-red-800 px-2 py-1 rounded-full text-xs">高影响</span>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
                    <div class="text-green-500 mb-4">
                        <i class="fas fa-shield-alt text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">安全注意事项</h3>
                    <p class="text-gray-700">Arthas功能强大，需要特别注意安全问题。</p>
                    <ul class="mt-3 space-y-2 text-sm text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mr-2 mt-1"></i>
                            <span>限制远程访问</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mr-2 mt-1"></i>
                            <span>操作审计日志</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mr-2 mt-1"></i>
                            <span>妥善保管堆转储文件</span>
                        </li>
                    </ul>
                </div>
            </div>

            <div>
                <h3 class="text-2xl font-semibold mb-6 flex items-center">
                    <i class="fas fa-question-circle text-orange-500 mr-2"></i> 常见问题解决
                </h3>
                
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="bg-white p-5 rounded-lg border border-gray-200">
                        <h4 class="font-medium text-lg mb-2 flex items-center">
                            <i class="fas fa-bug text-red-500 mr-2"></i> 无法attach到目标进程
                        </h4>
                        <div class="command-box">
                            <code># 检查进程是否存在
$ jps

# 检查权限
$ sudo java -jar arthas-boot.jar</code>
                        </div>
                    </div>
                    
                    <div class="bg-white p-5 rounded-lg border border-gray-200">
                        <h4 class="font-medium text-lg mb-2 flex items-center">
                            <i class="fas fa-exclamation-triangle text-yellow-500 mr-2"></i> 命令执行失败
                        </h4>
                        <div class="command-box">
                            <code># 检查类路径
$ sc -d com.ts.Service

# 重新加载类
$ redefine /path/to/class</code>
                        </div>
                    </div>
                    
                    <div class="bg-white p-5 rounded-lg border border-gray-200">
                        <h4 class="font-medium text-lg mb-2 flex items-center">
                            <i class="fas fa-tachometer-alt text-red-500 mr-2"></i> 性能影响过大
                        </h4>
                        <div class="command-box">
                            <code># 停止所有监控
$ profiler stop
$ trace -E
$ monitor -E</code>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```